<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
	<title>货品管理</title>
	<%@ include file="layouts/top.jsp"%>
	
	<script type="text/javascript" charset="UTF-8" src="${ctx}/js/product/Init.js"/></script>
	<script type="text/javascript" charset="UTF-8" src="${ctx}/js/product/Event.js"/></script>
	<script type="text/javascript" charset="UTF-8" src="${ctx}/js/product/Cmd.js"/></script>
</head>
<body>
	<div id="toolbar" class="search_bar" style="height:auto">
		<table style="width:100%">
			<tbody>
				<tr class="line_0">
					<td class="search_title">物品号:</td>
					<td class="search_content">
						<input id="sku_query" style="width:150px;" />
					</td>
				</tr>
			</tbody>
		</table>
		<a href="#" class="easyui-linkbutton" iconCls="icon-search" onclick="query()">查询</a>
		<a href="#" class="easyui-linkbutton" iconCls="icon-add" plain="true" onclick="initAdd()">增加</a>
	</div>
	<table id="dg" title="查询列表" class="easyui-datagrid" toolbar="#toolbar"
		url="<c:url value="/baseInfo/queryProductList"/>"
		rownumbers="true" fitColumns="true" singleSelect="true" pagination="true">
		<thead>
			<tr>
				<th field="sku" width="50">物品号</th>
				<th field="productName" width="50">物品名</th>
				<th field="action" formatter="formatAction" width="30">操作</th>
			</tr>
		</thead>
	</table>
	
	<div id="dlg" class="easyui-dialog"
		style="width: 350px; height: auto; padding: 5px 5px;"
		closed="true" buttons="#dlg-buttons">
		<div align="left">
			<table class="formInfoTable" id="infoTable" width="100%">
				<tr>
					<td class="formInfoTable_LableCol">物品号</td>
					<td class="formInfoTable_StarCol">*</td>
					<td class="formInfoTable_InfoCol">
						<input id="sku_text" style="width:150px;" />
					</td>
				</tr>
				<tr>
					<td class="formInfoTable_LableCol">物品名</td>
					<td class="formInfoTable_StarCol"></td>
					<td class="formInfoTable_InfoCol">
						<input id="productName_text" style="width:150px;" />
					</td>
				</tr>
			</table>
		</div>
		<div id="dlg-buttons">
			<a href="#" class="easyui-linkbutton" iconCls="icon-ok" onclick="saveProduct()">保存</a>
			<a href="#" class="easyui-linkbutton" iconCls="icon-cancel" onclick="javascript:$('#dlg').dialog('close')">取消</a>
		</div>
	</div>
</body>
</html>